package com.io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;

public class ISRDemo {
    public static void main(String[] args) throws IOException {
//        FileInputStream fis = new FileInputStream("oos.txt");
        FileInputStream fis1 = new FileInputStream("/Users/zhanggang/project/workspace/JSD20240328EE/day06/src/main/java/com/io/OSWDemo.java");
//        InputStreamReader isr = new InputStreamReader(fis);
        InputStreamReader isr1 = new InputStreamReader(fis1);
        int d;
        while ((d = isr1.read()) != -1) {
            System.out.print((char) d);
        }

    }
}
